@import '@/styles/variable.scss';
@import '@/styles/mixin.scss';

.player {
  display: flex;
  flex-direction: column;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: #222;
  z-index: 3000;

  h2, h3 {
    margin: 6px 32px 0;
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
  }

  h3 {
    color: #ccc;
    font-size: 14px;
    font-weight: normal;
  }

  .van-icon-shrink {
    position: absolute;
    top: 5px;
    left: 5px;
  }

  .bg-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    opacity: 0.6;
    filter: blur(20px);
    img{ width: 100%; height: 100%;}
  }

  // 歌曲图片
  .pic-wrapper {
    margin: 10px auto;
    text-align: center;

    .song-pic {
      border: 10px solid hsla(0,0%,100%,.1);
    }
  }

  // 歌词区域
  .lyric-wrapper {
    flex: 1;
    @include smoothScroll;
  }

  // 进度条区域
  .progress-wrapper {
    display: flex;
    align-items: center;
    margin: 30px 8%;

    span {
      margin: 0 10px;
      min-width: 29px;
    }

    .slider {
      flex: 1;
    }

    /deep/ .van-slider__button {
      width: 15px;
      height: 15px;
      box-shadow: 0 0 6px rgba(25,137,250,.5);
    }
  }
}

// big-player transition
.rott-enter-active, .rott-leave-active {
  transition: all .6s;
}

.rott-enter, .rott-leave-to {
  opacity: 0;
}

.rott-enter {
  transform: rotate(45deg) translateZ(0);
  transform-origin: 100% 100%;
}

.slide-right-enter-active, .slide-right-leave-active {
  transition: all .6s;
}

.slide-right-enter, .slide-right-leave-to {
  opacity: 0;
  transform: translate3d(150px, 0, 0);
}
